﻿@model IEnumerable<int>
@{
    ViewBag.Title = "Calendrier";
}

<h1>@ViewBag.Title</h1>

<table >
    <tbody>
        <tr>
            @for(int i = 0; i < 24; i++)
            {
                if (Model.ElementAt(i) == 0)
                {
                    <td class="calendar-green">@i</td>
                }
                else
                {
                    <td class="calendar-red">@i</td>
                }
            }
        </tr>
    </tbody>
</table>

<table class="legend">
    <tbody>
        <tr>
            <td></td>
            <td>Horaire disponible</td>
        </tr>
        <tr>
            <td></td>
            <td>Horaire réservé</td>
        </tr>
    </tbody>
</table>